<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>分类设置</title>
</head>
<body>

<div class="layui-fluid">


    <div class="layui-card">

        <form method="post" action="" class="layui-form" lay-filter="zmn-form">
            <input type="hidden" name="categId" th:value="${categ.categId}">

            <!--<div class="layui-card-header" style="margin-top:10px;"><b>如2级分类系数未设置，提交时将忽略，应用时将默认使用1级分类的系数设置。</b></div>-->
            <div class="layui-split">&nbsp;</div>

            <div class="layui-form-item">
                <label class="layui-form-label  layui-form-required">分类名称:</label>
                <div class="layui-input-inline">
                    <input lay-verify="required" id="name"  type="text" name="name" th:value="${categ.name=='null'?'':categ.name}" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">排序ID:</label>
                <div class="layui-input-inline">
                    <input lay-verify="positive|required" id="sort" type="text" name="sort" th:value="${categ.sort=='null'?'':categ.sort}" autocomplete="off" class="layui-input"/>
                </div>
                <div class="layui-form-mid layui-word-aux">数字越小，越在前面</div>
            </div>

            <div class="layui-split">&nbsp;</div>
            <!--按钮栏
                    置于form标签内的最下方，
                    主功能按钮使用默认样式，次要功能按钮使用原始按钮(加入样式layui-btn-primary)
                    -->
            <div class="layui-form-item submit">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">提交</button>
                    <button class="layui-btn layui-btn-primary" id="cancleBtn">
                        取消
                    </button>
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>
        </form>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        cancel_category_detail_js: "orderconfig/cancel/category/zmn.plat.orderconfig.cancel.category.detail",
    }).use(['index', 'cancel_category_detail_js']);
</script>
</body>
</html>